﻿<UserControl x:Class="mal.WP7.GoogleAnalytics.Business.Tiles.WebsiteTile"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    Width="173" Height="173">
    <Grid x:Name="LayoutRoot" 
          Background="{StaticResource TileBackgroundBrush}">
        <!-- 
        This control is used to generate image for phone home page tile.
        For unknown reasons the image generation work only if the layout
        is a canvas.
        -->
        <Canvas Margin="5">
            <Image Source="/Images/visitor.png" Width="24" />

            <TextBlock x:Name="visitorsCount"                            
                           Text="250000" 
                           Canvas.Left="20"
                   Style="{StaticResource PhoneTextNormalStyle}" />

            <Image x:Name="Arrow" 
                       Canvas.Top="60"                       
                       Width="48" Height="48" />

            <TextBlock 
                   x:Name="delta" 
                    Canvas.Top="62"  
                    Canvas.Left="38"  
                   Text="+15%"
                   Style="{StaticResource PhoneTextLargeStyle}"/>
        </Canvas>
    </Grid>
</UserControl>
